
html,body{
  height: 100%;
  width: 100%;
  background: rgba(88, 96, 87, 0.36);
}
/*红包页面*/
.main {
  position: relative;
  width: 100%;
  height: 100%;
  margin: auto;
  background: rgba(0, 0, 0, 0.8);
}

/*光环*/
.halo{
  width: 100%;
  height: 100%;
  z-index: 3;
  background: url("../img/halo.png") no-repeat center 15%;
  background-size: contain;
}

/*红包外层*/
.packet-wrap {
  position: absolute;
  width: 14rem;
  top: 5.6rem;
  left: 50%;
  margin-left: -7rem;
}

/*打开状态红包盖子*/
.paging-open {
  width: 14rem;
  height: 2.625rem;
  background: url("../img/paging-open.png") no-repeat;
  background-size: contain;
  opacity: 0;
}

/*红包*/
.packet {
  position: relative;
  top: -.25rem;
  width: 14rem;
  height: 17rem;
  margin: auto;
  background: url("../img/bg.png") no-repeat center;
  background-size: 100% 100%;
  background-origin: content-box;
}
.face {
  z-index: 4;
  height: 100%;
  position: absolute;
  width: 100%;
}
/*红包盖子*/
.money {
  position: absolute;
  width: 100%;
  height: 4.5rem;
  top: -2.5rem;
  z-index: 3;
  background: url("../img/money.png") no-repeat;
  background-size: contain;
  opacity: 0;
}
.paging-close {
  position: absolute;
  top: -.4rem;
  width: 14rem;
  height: 5.5rem;
  background: url("../img/lid_02.png") no-repeat top;
  background-size: contain;
  display: block;
  z-index: 6;
}

/*文字内容*/
.result {
  position: absolute;
  z-index: 5;
  height: 100%;
  width: 100%;
  top: 0;
}

.result p {
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
}

.result .text1 {
  text-align: center;
  margin-top: 7rem;
  color: #fff
}

.result .text2 {
  color: #fff29b;
  margin-top: .7rem;
  display: flex;
  align-content: center;
  justify-content: center;
}

.result .btn {
  width: 10rem;
  height: 2.25rem;
  margin: auto;
  background: url("../img/button_03.png") no-repeat;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-main{
  display: flex;
}
.result .btn span {
  font-size: 0.8rem;
  line-height: 2.25rem;
  color: #593400;
  font-weight: 700;
}

.result .btn .finger {
  display: block;
  width: 1.1rem;
  height: 1.25rem;
  margin: 0.5rem 0 0.3rem 0.2rem;
  background: url("../img/finger.png") no-repeat center;
  background-size: cover;
}

/*开奖后模块样式*/

.result .slogan { /*呐喊*/
  font-size: 1.1rem;
  color: white;
  width: 100%;
  text-align: center;
  margin-top: 2.75rem;
}

.result .name {
  /*奖品名称*/
  width: 100%;
  margin-top: 0.625rem;
  text-align: center;
  font-size: 0.6rem;
  color: #fff;
}

.result .name span {
  font-size: 0.8rem;
  color: #fff29b;
}

.result .box {
  width: 10.375rem;
  height: 4.25rem;
  position: relative;
  margin: 0.75rem auto 0;
  background: url("../img/panda.png") no-repeat top;
  background-size: 100% 100%;
  display: flex;
  justify-content: flex-end;
}

.box ul {
  width: 67%;
  padding: .8rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.box ul li {
  font-size: 0.75rem;
  color: #e6002d;
}

.box ul li:nth-child(1) {
  font-size: 0.7rem;
  font-weight: 600;
}

.box ul li:nth-child(2) {
  font-size: 0.5rem;
}

.box ul li:nth-child(2) span {
  font-size: 0.75rem;
  font-weight: 800;
}

.box ul li:nth-child(3) {
  margin-top: .1rem;
  color: #ed607b;
  font-size: 0.4rem;
}

.twoList {
  font-size: 0.75rem;
  font-weight: 800;
}

.result .account {
  font-size: 0.6rem;
  color: #ed607b;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}


.packet-wrap .hide {
  display: none;
}

.packet-wrap .show {
  opacity: 1;
  display: block;
}

/**/
.close {
  width: 2rem;
  height: 2rem;
  position: absolute;
  right:2rem ;
  top: 3.6rem;
  margin-left: -1rem;
  background: url("../img/closed.png") no-repeat center;
  background-size: contain;
  background-origin: content-box;
}



.tada {
  animation: tada 1s;
  -webkit-animation-name: tada;
  animation-name: tada;
}

@-webkit-keyframes tada {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  10%,
  20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%,
  60%,
  80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes tada {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  10%,
  20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%,
  60%,
  80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@-webkit-keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(0.97, 0.97, 0.97);
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(0.97, 0.97, 0.97);
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.bounceIn {
  animation: bounceIn 1s;
  animation-delay: 1s;
  -webkit-animation-duration: 0.75s;
  animation-duration: 0.75s;
  -webkit-animation-name: bounceIn;
  animation-name: bounceIn;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  animation: fadeIn 1s;
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

@-webkit-keyframes bounceInDown {
  from,
  60%,
  75%,
  90%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -3000px, 0);
    transform: translate3d(0, -3000px, 0);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(0, 25px, 0);
    transform: translate3d(0, 25px, 0);
  }

  75% {
    -webkit-transform: translate3d(0, -10px, 0);
    transform: translate3d(0, -10px, 0);
  }

  90% {
    -webkit-transform: translate3d(0, 5px, 0);
    transform: translate3d(0, 5px, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes bounceInDown {
  from,
  60%,
  75%,
  90%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -3000px, 0);
    transform: translate3d(0, -3000px, 0);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(0, 25px, 0);
    transform: translate3d(0, 25px, 0);
  }

  75% {
    -webkit-transform: translate3d(0, -10px, 0);
    transform: translate3d(0, -10px, 0);
  }

  90% {
    -webkit-transform: translate3d(0, 5px, 0);
    transform: translate3d(0, 5px, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.bounceInDown {
  animation: bounceInDown 1s;
  animation-fill-mode: forwards;
  animation-delay: .5s;
  -webkit-animation-name: bounceInDown;
  animation-name: bounceInDown;
}

@-webkit-keyframes flipInX {
  from {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  to {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
}

@keyframes flipInX {
  from {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  to {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
}

.flipInX {
  animation: flipInX 1s;
  animation-fill-mode: forwards;
  animation-delay: 1s;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  -webkit-animation-name: flipInX;
  animation-name: flipInX;
}

@-webkit-keyframes slideInDown {
  from {
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    visibility: visible;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInDown {
  from {
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    visibility: visible;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.slideInDown {
  animation: slideInDown 1s;
  animation-fill-mode: forwards;
  -webkit-animation-name: slideInDown;
  animation-name: slideInDown;
}

@-webkit-keyframes pulse {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
    transform: scale3d(1.05, 1.05, 1.05);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes pulse {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
    transform: scale3d(1.05, 1.05, 1.05);
  }

  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.pulse {
  animation: pulse 1s;
  animation-fill-mode: forwards;
  animation-delay: 2s;
  -webkit-animation-name: pulse;
  animation-name: pulse;
}
